cmake_minimum_required(VERSION 2.8)

project(png-img-title-remover)

set(SOURCES src/PNGImage.cpp src/milLibPublicInterface.cpp src/QtDISPLAY.cpp src/TextChunk.cpp)


find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(dependencies/libpng-1.5.10)

add_definitions(${QT_DEFINITIONS})

#set a macro to indicate this build uses Qt
#this definition with be checked in the c++ code
add_definitions(-DCOMPILING_WITH_QT)

set(CMAKE_EXE_COMPILER_FLAGS "-g -v")

set(CMAKE_CXX_FLAGS "-g -Wall")

add_executable(PNGProcessor ${SOURCES} ${HEADERS_MOC})
